﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Home.master" AutoEventWireup="true" CodeFile="pHome.aspx.cs" Inherits="Home" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style4
    {
        text-align: left;
    }
    .style5
    {
        height: 23px;
        text-align: left;
    }
    .style6
    {
        width: 1000px;
        height: 23px;
    }
        .style7
        {
            width: 1000px;
            height: 23px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width:100%; border:double;">
    <tr>
        <td class="style4">
            <asp:UpdatePanel ID="upnlDanhSachNguoiDungNhanVanBanTrongNgay" runat="server">
                <ContentTemplate>
                    <asp:DataList ID="dlstDanhSachNguoiDungNhanVanBanTrongNgay" runat="server" 
                        Caption="DS. NGƯỜI DÙNG NHẬN VĂN BẢN TRONG NGÀY (cập nhật mỗi 60 giây)" 
                        DataKeyField="MaNguoiNhan" 
                        onitemdatabound="dlstDanhSachNguoiDungNhanVanBanTrongNgay_ItemDataBound" 
                        RepeatColumns="5" style="text-align: left" Width="100%" ForeColor="Red" 
                        GridLines="Both">
                        <ItemTemplate>
                            <asp:Label ID="lblMaNguoiNhan" runat="server" style="text-align: left" 
                                Text='<%# Eval("MaNguoiNhan") %>' ForeColor="Blue"></asp:Label>
                            <br />
                            <asp:Label ID="lblNgayNhanGanNhat" runat="server" Text="Label" 
                                ForeColor="Green"></asp:Label>
                        </ItemTemplate>
                    </asp:DataList>
                </ContentTemplate>


            </asp:UpdatePanel>
            
        </td>
    </tr>

    <tr>
    <td class="style5">
        <asp:Timer ID="tmrDanhSachNguoiDungNhanVanBanTrongNgay" runat="server" 
            ontick="tmrDanhSachNguoiDungNhanVanBanTrongNgay_Tick">
        </asp:Timer>
        </td>
    </tr>

    <tr>
        <td class="style4" style="color: #FF0000">
            <strong>VĂN BẢN CHI NHÁNH</strong></td>
    </tr>
    <tr>
        <td class="style4">
            <asp:GridView ID="gvVanBanChiNhanh" runat="server" AllowPaging="True" 
                AutoGenerateColumns="False" CellPadding="4" DataKeyNames="MaVanBan" 
                ForeColor="#333333" GridLines="None" Width="100%" 
                onpageindexchanging="gvVanBanChiNhanh_PageIndexChanging">
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <table width="100%">
                                <tr>
                                    <td align="left" width="40">
                                        <asp:Label ID="lblMaTinhChat" runat="server" 
                                            Text='<%# "(" + Eval("MaTinhChat") + ")" %>'></asp:Label>
                                    </td>
                                    <td align="left" width="400">
                                        <asp:HyperLink ID="hlnkMaVanBan" runat="server" 
                                            NavigateUrl='<%# "~/QLVB/User/" + "ChiTietVanBan.aspx?MaVanBan=" + Eval("MaVanBan") %>' 
                                            Text='<%# Eval("TenVanBan") %>'></asp:HyperLink>
                                    </td>
                                    <td align="right" width="40">
                                        <asp:Label ID="lblSoVanBan" runat="server" 
                                            Text='<%# Eval("SoVanBan") %>'></asp:Label>
                                    </td>
                                    <td align="right" width="100">
                                        <asp:Label ID="lblNgayDuyetSoanThao" runat="server" 
                                            Text='<%# Eval("NgayKiemSoat") %>'></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <EditRowStyle BackColor="#2461BF" />
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#EFF3FB" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F5F7FB" />
                <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                <SortedDescendingCellStyle BackColor="#E9EBEF" />
                <SortedDescendingHeaderStyle BackColor="#4870BE" />
            </asp:GridView>
        </td>
    </tr>
    <tr>
        <td class="style5">
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style7" style="color: #FF0000">
            <strong>VĂN BẢN PHÒNG/TỔ</strong></td>
    </tr>
    <tr>
        <td class="style4">
            <asp:GridView ID="gvVanBanPhongTo" runat="server" AllowPaging="True" 
                CellPadding="4" ForeColor="#333333" GridLines="None" 
                AutoGenerateColumns="False" Width="100%" 
                onpageindexchanging="gvVanBanPhongTo_PageIndexChanging">
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <table width="100%">
                                <tr>
                                    <td align="left" width="40">
                                        <asp:Label ID="lblMaTinhChat" runat="server" 
                                            Text='<%# "(" + Eval("MaTinhChat") + ")" %>'></asp:Label>
                                    </td>
                                    <td align="left" width="400">
                                        <asp:HyperLink ID="hlnkMaVanBan" runat="server" 
                                            NavigateUrl='<%# "~/QLVB/User/" + "ChiTietVanBan.aspx?MaVanBan=" + Eval("MaVanBan") %>' 
                                            Text='<%# Eval("TenVanBan") %>'></asp:HyperLink>
                                    </td>
                                    <td align="right" width="40">
                                        <asp:Label ID="lblSoVanBan" runat="server" Text='<%# Eval("SoVanBan") %>'></asp:Label>
                                    </td>
                                    <td align="right" width="100">
                                        <asp:Label ID="lblNgayDuyetSoanThao" runat="server" 
                                            Text='<%# Eval("NgayKiemSoat") %>'></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <EditRowStyle BackColor="#2461BF" />
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#EFF3FB" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F5F7FB" />
                <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                <SortedDescendingCellStyle BackColor="#E9EBEF" />
                <SortedDescendingHeaderStyle BackColor="#4870BE" />
            </asp:GridView>
        </td>
    </tr>
    </table>
</asp:Content>

